import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '@/views/Index'
import Classify from '@/views/Classify'
import My from '@/views/My'
import PayList from '@/views/PayList'
import NotFound from '@/views/NotFound'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/index',
    component: Index
  },
  {
    path: '/classify',
    component: Classify
  },
  {
    path: '/payList',
    component: PayList
  },
  {
    path: '/my',
    component: My
  },
  {
    path: '*',
    component: NotFound
  }
]

const router = new VueRouter({
  routes
})

export default router
